import request from './request'

export const getpaperlists = (params) => {
  return request({
    url: '/api/admin/examPapers',
    method: 'GET',
    params
  })
}

// 删除
export const deletepaper = (pid) => {
  return request({
    url: `/api/admin/examPaper/${pid}`,
    method: 'DELETE'
  })
}

// id查询
export const getpaperfromid = (pid) => {
  return request({
    url: `/api/admin/examPaper/${pid}`,
    method: 'GET'
  })
}

//  试卷编辑
export const editpaper = (params) => {
  return request({
    url: '/api/admin/examPaper',
    method: 'PUT',
    params
  })
}

// 试卷创编
export const addpaper = (data) => {
  return request({
    url: '/api/admin/examPaper',
    method: 'POST',
    data
  })
}
<<<<<<< HEAD

//  考试记录
export const getexamdata = (params) => {
  return request({
    url: '/api/student/RecordPage',
    method: 'GET',
    params
  })
}
=======
>>>>>>> 7d520118954f103433f5074ad63a16f5b63acf51
